{if !empty($attachment)}
<h2>{$attachMsg?:'附件'}</h2>
<div class="layui-collapse" style="margin-top: 20px;">
    {php}$index=1;{/php}
    {foreach $attachment as $k => $v}
    <div class="layui-colla-item">
        <h2 class="layui-colla-title">{$k}</h2>
        <div class="layui-colla-content {if $index == 1}layui-show{/if}">
            {php}$index++;{/php}
            <ul>
                {foreach $v as $a}
                <li><a target="_blank" href="{$a.path}">{$a.name?:$a.path}</a></li>
                {/foreach}
            </ul>
        </div>
    </div>
    {/foreach}
</div>
{/if}